home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.5)
-
- _modes = { }
-
- class ModeDescriptor:
-
- def __init__(self, mode, bands, basemode, basetype):
- self.mode = mode
- self.bands = bands
- self.basemode = basemode
- self.basetype = basetype
-
-
- def __str__(self):
- return self.mode
-
-
-
- def getmode(mode):
- if not _modes:
- import Image
- for basemode, basetype, bands in Image._MODEINFO.items():
- _modes[m] = ModeDescriptor(m, bands, basemode, basetype)
-
- _modes['LA'] = ModeDescriptor('LA', ('L', 'A'), 'L', 'L')
- _modes['PA'] = ModeDescriptor('PA', ('P', 'A'), 'RGB', 'L')
-
- return _modes[mode]
-
-